

class Tracer(object):
	CREATION	= 1
	TRANSPORT	= 2
	
	def __init__(self, typeOp, ori = None, dest = None, cost = 0):
		self.typeOperation 	= typeOp
		self.origine		= ori
		self.destination	= dest
		self.cost		= cost
		
	def display(self):
		if self.typeOperation == Tracer.CREATION:
			return '[CREATION]\tEntrepot ' + self.origine + ' | cout : ' + str(self.cost)
		else:
			return '[TRANSPORT]\tDe ' + self.origine + ' a ' + self.destination + ' | cout : ' + str(self.cost)
